<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="./css/bootstrap.css">
  <script src="./js/jquery.min.js"></script>
  <script src="./js/popper.min.js"></script>
  <script src="./js/bootstrap.min.js"></script>
  <title>Document</title>
  <style></style>
</head>

<body>
  <div class="container"></div>

  <script>
    // ?phone=2&spec=全网通公开版%208+256GB
    let type = location.search.split("&")[0].split("=")[0].slice(1)
    let id = location.search.split("&")[0].split("=")[1]
    let spec = location.search.split("&")[1].split("=")[1]
    console.log(type);
    console.log(id);
    console.log(spec);
  </script>
</body>

</html>